/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package manage_image;

import java.awt.GraphicsDevice;
import java.awt.GraphicsEnvironment;
import java.awt.Rectangle;
import javax.swing.JFrame;

/**
 *
 * @author PHONG
 */
public class Manage_Image {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws ClassNotFoundException {
        // TODO code application logic here
         try{

            // load the theme
             
             String Theme="com.jtattoo.plaf.mcwin.McWinLookAndFeel";
            javax.swing.UIManager.setLookAndFeel(Theme);
        } catch (Exception ex){
            ex.printStackTrace();
        }
        GraphicsDevice gd = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice();
        int height = gd.getDisplayMode().getHeight();
        int width=gd.getDisplayMode().getWidth();
        Rectangle winSize = GraphicsEnvironment.getLocalGraphicsEnvironment().getMaximumWindowBounds();
        int taskBarHeight = height - winSize.height;
        Main frm = new Main();
        frm.setSize(width, height-taskBarHeight);
        frm.setLocation(0, 0);
        frm.setExtendedState(JFrame.MAXIMIZED_BOTH);
        frm.setVisible(true);

    }
}
